[Unit]
Description=Node Exporter For Prometheus
Documentation=https://github.com/prometheus/node_exporter/releases/tag/v{{ node_exporter_version }}
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
ExecStart={{ node_exporter_work_dir }}/node_exporter-{{ node_exporter_version }}.linux-amd64/node_exporter --web.config={{ node_exporter_work_dir }}/node_exporter-{{ node_exporter_version }}.linux-amd64/config.yml --web.listen-address=:{{ node_exporter_port }}
ExecReload=/bin/kill -HUP $MAINPID
TimeoutSec=0
RestartSec=5
Restart=always

[Install]
WantedBy=multi-user.target

